package com.home.security.browser.auth.service;

import com.home.security.browser.auth.entity.SysMenu;
import com.home.security.browser.auth.mapper.SysMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 * Created by 王大宸 on 2020-10-08 16:07
 * Created with IntelliJ IDEA.
 */
@Service
public class SysMenuService {
    @Autowired
    private SysMenuMapper menuMapper;

    /**
     * 功能说明：根据用户信息获取用户菜单
     *
     * @param userId 用户id
     * @return java.util.List<com.home.security.browser.auth.entity.SysMenu>
     * @author 王大宸
     * @date 2020/10/8 16:28
     */
    public List<SysMenu> getMenuByUser(String userId) {
        return menuMapper.getMenuByUser(userId);
    }

}
